#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int search(int list[], int n, int x)
{
	int i = 0;
	for (i = 0; i < n; i++)
	{
		if (list[i] == x)
		{
			return i;
		}
	}
	return -1;
}

int main()
{
	int arr[10] = { 0 };
	int i = 0;
	while (scanf("%d", &arr[i]) == 1)
	{
		if (i == 9)
		{
			int x = 0;
			scanf("%d", &x);
		     int num=search(arr,10,x);
		    if (num == -1)
		   {
			  printf("Not found\n");
		   }
		  else 
		   {
			 printf("%d\n", num);
		   }
			i = -1;
		}
		i++;
	}
	return 0;
}